const config = require('config');
const redis = require('redis');

const client = redis.createClient(config.get('redis'));
client.on('error', (err) => {
  console.error('redis', err);
});

module.exports = client;
